﻿using System.Diagnostics.Contracts;
using Library.Collections.Generic;

namespace Library.Collections.Specialized
{
    public interface ICollectionTestable : ICollection
    {
        [Pure]
        bool CanAdd(object item);

        [Pure]
        bool CanRemove(object item);
    }

    public interface ICollectionTestable<in TElement> : ICollection<TElement>
    {
        [Pure]
        bool CanAdd(TElement item);

        [Pure]
        bool CanRemove(TElement item);
    }
}
